PyPI: apprise
CVE-2021-39229
Safety vulnerability ID: SFTY-20210920-67232
Safety legacy ID: pyup.io-54335
Apprise is an open source library which allows you to send a notification to almost all of the most popular notification services available. In affected versions users who use Apprise granting them access to the IFTTT plugin (which just comes out of the box) are subject to a denial of service attack on an inefficient regular expression. The vulnerable regular expression is [here](https://github.com/caronc/apprise/blob/0007eade20934ddef0aba38b8f1aad980cfff253/apprise/plugins/NotifyIFTTT.py#L356-L359). The problem has been patched in release version 0.9.5.1. Users who are unable to upgrade are advised to remove `apprise/plugins/NotifyIFTTT.py` to eliminate the service.
Overview
Apprise vulnerable to regex injection with IFTTT Plugin
Advisory
Apprise is an open source library which allows you to send a notification to almost all of the most popular notification services available. In affected versions users who use Apprise granting them access to the IFTTT plugin (which just comes out of the box) are subject to a denial of service attack on an inefficient regular expression. The vulnerable regular expression is [here](https://github.com/caronc/apprise/blob/0007eade20934ddef0aba38b8f1aad980cfff253/apprise/plugins/NotifyIFTTT.py#L356-L359). The problem has been patched in release version 0.9.5.1. Users who are unable to upgrade are advised to remove `apprise/plugins/NotifyIFTTT.py` to eliminate the service.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20210920-67232/CVE-2021-39229
- https://github.com/caronc/apprise/security/advisories/GHSA-qhmp-h54x-38qr
- https://github.com/caronc/apprise/commit/e20fce630d55e4ca9b0a1e325a5fea6997489831
- https://github.com/caronc/apprise/releases/tag/v0.9.5.1
- https://nvd.nist.gov/vuln/detail/CVE-2021-39229
- https://github.com/caronc/apprise/pull/436
- https://github.com/caronc/apprise/blob/0007eade20934ddef0aba38b8f1aad980cfff253/apprise/plugins/NotifyIFTTT.py#L356-L359
- https://github.com/pypa/advisory-database/tree/main/vulns/apprise/PYSEC-2021-327.yaml
- https://github.com/advisories/GHSA-qhmp-h54x-38qr
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
