{"id":"CVE-2026-104356","summary":"PictShare \u003c 3.7.1 Predictable Delete Code via rand()","details":"PictShare before version 3.7.1 contains a weak randomness vulnerability where the getRandomString() function uses the non-cryptographic rand() PRNG to generate the delete_code authorization token in src/inc/core.php. Attackers can predict or infer the PRNG state to guess valid delete_code values and perform unauthorized deletion of hosted files without needing to read the code from the info endpoint.","modified":"2026-10-04T02:30:14.363460919Z","published":"2026-10-01T21:21:45.992Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104356.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-338"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/104xxx/CVE-2026-104356.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-104356"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/pictshare-predictable-delete-code-via-rand"},{"type":"REPORT","url":"https://github.com/HaschekSolutions/pictshare/commit/ce5fc474e89769efeae25fee763894bcce3412e3"},{"type":"FIX","url":"https://github.com/HaschekSolutions/pictshare/releases/tag/v3.7.1"},{"type":"PACKAGE","url":"https://github.com/HaschekSolutions/pictshare"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/hascheksolutions/pictshare","events":[{"introduced":"fc9a7d3072cdf840e681796fa0a2afaa171b3c95"},{"fixed":"ce5fc474e89769efeae25fee763894bcce3412e3"}],"database_specific":{"extracted_events":[{"introduced":"2.0.0"},{"fixed":"3.7.1"},{"introduced":"0"}],"source":["AFFECTED_FIELD","DESCRIPTION","REFERENCES"]}}],"versions":["v3.7.0","v3.6.0","v3.5.1","v3.5.0","v3.4.2","v3.4.1","v3.4.0","v3.3.2","v3.3.1","v3.3.0","v3.2.0","v3.1.6","v3.1.5","v3.1.0","v3.0.7","v3.0.6","v3.0.5","v3.0.4","v3.0.3","v3.0.2","v3.0.1","v3.0.0","v2.0.3","v2.0.2","v2.0.1","v2.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-104356.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}