{"id":"GHSA-rj29-j2g4-77q8","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","aliases":["CVE-2024-28864"],"modified":"2024-03-19T18:45:59.643791Z","published":"2024-03-18T20:39:00Z","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"},"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"}],"affected":[{"package":{"name":"ilicmiljan/secure-props","ecosystem":"Packagist","purl":"pkg:composer/ilicmiljan/secure-props"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.2.0"},{"fixed":"1.2.2"}]}],"versions":["v1.2.0","v1.2.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-rj29-j2g4-77q8/GHSA-rj29-j2g4-77q8.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N"}]}