CVE-2024-28864 json
[TagAwareCipher] - Decryption Failure (Regex Match)
published 2024-03-18 2 y ago modified 2026-09-10 1 mo ago also GHSA-rj29-j2g4-77q8 , EUVD-2024-1003
- cvss
- 2.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 26%
- public exploits
- 0
- none known
Summary
SecureProps is a PHP library designed to simplify the encryption and decryption of property data in objects. A vulnerability in SecureProps version 1.2.0 and 1.2.1 involves a regex failing to detect tags during decryption of encrypted data. This occurs when the encrypted data has been encoded with `NullEncoder` and passed to `TagAwareCipher`, and contains special characters such as `\n`. As a result, the decryption process is skipped since the tags are not detected. This causes the encrypted data to be returned in plain format. The vulnerability affects users who implement `TagAwareCipher` with any base cipher that has `NullEncoder` (not default). The patch for the issue has been released. Users are advised to update to version 1.2.2. As a workaround, one may use the default `Base64Encoder` with the base cipher decorated with `TagAwareCipher` to prevent special characters in the encrypted string from interfering with regex tag detection logic. This workaround is safe but may involve double encoding since `TagAwareCipher` uses `NullEncoder` by default.
Patch / fix
- packagist ilicmiljan/secure-props 1.2.2
- github.com/IlicMiljan/Secure-Props@ab7b561 commit
- github.com/IlicMiljan/Secure-Props#21 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.33% chance of exploitation in the next 30 days, higher than 26% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 2.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N |
| GitHub | 3.1 | 2.6 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | ilicmiljan/secure-props | >=1.2.0, <1.2.2 |
1.2.2 |
Affected products
- IlicMiljan Secure-Props
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/IlicMiljan/Secure-Props/pull/21
web, issue-tracking
-
github.com
/IlicMiljan/Secure-Props/commit/ab7b561040cd37fda3dbf9a6cab01fefcaa16627
web, technical-description
-
github.com
/IlicMiljan/Secure-Props/security/advisories/GHSA-rj29-j2g4-77q8
web, vendor-advisory
-
github.com
/IlicMiljan/Secure-Props/issues/20
web, issue-tracking, mitigation
-
nvd.nist.gov
/vuln/detail/CVE-2024-28864
advisory
-
github.com
/IlicMiljan/Secure-Props
package
Sources
- CVE List CVE-2024-28864
- GitHub Advisory GHSA-rj29-j2g4-77q8
- NVD CVE-2024-28864
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.