{"id":"CVE-2024-28864","published":"2024-03-18T21:49:06Z","modified":"2024-08-02T00:56:58Z","title":"[TagAwareCipher] - Decryption Failure (Regex Match)","vendor":"IlicMiljan","product":"Secure-Props","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.6,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00328,"percentile":0.26538,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/IlicMiljan/Secure-Props/security/advisories/GHSA-rj29-j2g4-77q8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/IlicMiljan/Secure-Props/issues/20","tags":["x_refsource_MISC"]},{"url":"https://github.com/IlicMiljan/Secure-Props/pull/21","tags":["x_refsource_MISC"]},{"url":"https://github.com/IlicMiljan/Secure-Props/commit/ab7b561040cd37fda3dbf9a6cab01fefcaa16627","tags":["x_refsource_MISC"]}],"priority":{"score":7.1,"factors":[{"name":"EPSS percentile","points":5.31},{"name":"CVSS severity","points":1.82}]},"vendorSlug":"ilicmiljan","affectedVersions":[{"vendor":"IlicMiljan","product":"Secure-Props","versions":[">= 1.2.0, < 1.2.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-16T00:14:33.422779Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"ilicmiljan/secure-props","vulnerableRanges":[">=1.2.0, <1.2.2"],"patched":["1.2.2"],"from":["GHSA-rj29-j2g4-77q8"],"provenance":"source"}],"summary":{"text":"The SecureProps PHP library (versions 1.2.0 and 1.2.1) has a flaw in the regex that detects tags during decryption in its TagAwareCipher component: when data encoded with NullEncoder contains special characters such as \\n, the tags are not detected, so decryption is skipped and the encrypted data is returned in plain form. An attacker who can reach the affected data with low privileges, and where a user interacts with the application, can obtain that data unencrypted, but only when TagAwareCipher is configured with a base cipher using NullEncoder rather than the default.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:02Z"},"euvd":{"id":"EUVD-2024-1003","exploited":false,"provenance":"source"}}