CVE-2024-28864: Ilicmiljan/secure props [TagAwareCipher] - Decryption Failure (Regex Vulnerability
LOWCVE-2024-28864 is a LOW (CVSS 2.6) [tagawarecipher] - decryption failure (regex vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Ilicmiljan/secure props libraries in the Packagist ecosystem. The issue involves [tagawarecipher] - decryption failure (regex match). Remediation is available by upgrading affected packages to version 1.2.2.
CVE-2024-28864 at a Glance
Security Impact
CVSS: 2.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N).
How to Fix CVE-2024-28864
To remediate this vulnerability, upgrade all affected Ilicmiljan/secure props dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade ilicmiljan/secure-props to 1.2.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for ilicmiljan/secure-props
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-28864, inspect your project dependencies for Ilicmiljan/secure props:
inspect dependencies for ilicmiljan/secure-props
Analyze the terminal output to locate any version of Ilicmiljan/secure props in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Ilicmiljan/secure props, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-28864 Affected Ilicmiljan/secure props Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ilicmiljan/secure-props
|
Packagist |
≥ 1.2.0
< 1.2.2
|
1.2.2
|
References
Frequently Asked Questions
What is CVE-2024-28864?
Which Ilicmiljan/secure props versions are affected?
What version fixes CVE-2024-28864?
Is ilicmiljan/secure-props affected?
What is the CVSS score of CVE-2024-28864?
What CWE is associated with CVE-2024-28864?
How can I check Packagist dependencies for CVE-2024-28864?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rj29-j2g4-77q8",
"modified" : "2024-03-19T18:30:48Z",
"published" : "2024-03-18T20:39:00Z",
"aliases" : [ "CVE-2024-28864" ],
"summary" : "[TagAwareCipher] - Decryption Failure (Regex Match)",
"details" : "### Impact\n\nVulnerability in **SecureProps** involves a regex failing to detect tags during decryption of encrypted data. \n\nThis 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. \n\nThe vulnerability affects users who implement `TagAwareCipher` with any base cipher that has `NullEncoder` (not default).\n\n### Patches\n\nThe patch for the issue has been released. Users are advised to update to version **1.2.2**.\n\n### Workarounds\n\n**The main recommendation is to update to the latest version as there are no breaking changes.**\n\nIf that's not possible, you can 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. \n\nThis workaround is safe but may involve double encoding since `TagAwareCipher` uses `Base64Encoder` by default.\n \n### References\n\nReported issue: https://github.com/IlicMiljan/Secure-Props/issues/20\nPull request resolving bug: https://github.com/IlicMiljan/Secure-Props/pull/21\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "ilicmiljan/secure-props"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.0"
}, {
"fixed" : "1.2.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/IlicMiljan/Secure-Props/security/advisories/GHSA-rj29-j2g4-77q8"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-28864"
}, {
"type" : "WEB",
"url" : "https://github.com/IlicMiljan/Secure-Props/issues/20"
}, {
"type" : "WEB",
"url" : "https://github.com/IlicMiljan/Secure-Props/pull/21"
}, {
"type" : "WEB",
"url" : "https://github.com/IlicMiljan/Secure-Props/commit/ab7b561040cd37fda3dbf9a6cab01fefcaa16627"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/IlicMiljan/Secure-Props"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-03-18T20:39:00Z",
"nvd_published_at" : "2024-03-18T22:15:09Z"
}
}