{"id":"CVE-2026-104356","state":"PUBLISHED","title":"PictShare < 3.7.1 Predictable Delete Code via rand()","description":"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.","publishedAt":"2026-10-01T21:21:45.992Z","updatedAt":"2026-10-02T18:24:02.153Z","severity":{"score":8.2,"label":"High","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["HaschekSolutions pictshare"],"affected":[{"vendor":"HaschekSolutions","product":"pictshare","packageURL":"pkg:github/HaschekSolutions/pictshare","defaultStatus":"unaffected","versions":[{"version":"2.0.0","status":"affected","lessThan":"3.7.1","versionType":"semver"}],"repo":"https://github.com/HaschekSolutions/pictshare"}],"references":["https://github.com/HaschekSolutions/pictshare/commit/ce5fc474e89769efeae25fee763894bcce3412e3","https://github.com/HaschekSolutions/pictshare/releases/tag/v3.7.1","https://www.vulncheck.com/advisories/pictshare-predictable-delete-code-via-rand"],"weaknesses":["CWE-338"],"ingestedAt":"2026-10-29T20:10:23.711Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/104xxx/CVE-2026-104356.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-104356","state":"PUBLISHED","datePublished":"2026-10-01T21:21:45.992Z","dateUpdated":"2026-10-02T18:24:02.153Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-01T20:48:03.271Z"},"containers":{"cna":{"title":"PictShare < 3.7.1 Predictable Delete Code via rand()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"HaschekSolutions","product":"pictshare","packageURL":"pkg:github/HaschekSolutions/pictshare","defaultStatus":"unaffected","versions":[{"version":"2.0.0","status":"affected","lessThan":"3.7.1","versionType":"semver"}],"repo":"https://github.com/HaschekSolutions/pictshare"}],"references":[{"url":"https://github.com/HaschekSolutions/pictshare/commit/ce5fc474e89769efeae25fee763894bcce3412e3","name":"Patch Commit","tags":["issue-tracking","release-notes"]},{"url":"https://github.com/HaschekSolutions/pictshare/releases/tag/v3.7.1","name":"Vendor Patch","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/pictshare-predictable-delete-code-via-rand","name":"VulnCheck Advisory","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"HIGH","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"HIGH","baseScore":8.2,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","version":"3.1","baseSeverity":"MEDIUM","baseScore":5.9,"vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-338","lang":"en","description":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-01T21:21:45.992Z"},"tags":["x_open-source"],"datePublic":"2026-10-01T00:00:00.000Z","cpeApplicability":[{"operator":"OR","nodes":[{"operator":"OR","cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:hascheksolutions:pictshare:*:*:*:*:*:*:*:*","versionStartIncluding":"2.0.0","versionEndExcluding":"3.7.1"}]}]}],"credits":[{"lang":"en","value":"Alisher Qarshibayev","type":"finder"},{"lang":"en","value":"VulnCheck","type":"coordinator"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"vulncheck"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-02T18:23:52.166713Z","id":"CVE-2026-104356","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-02T18:24:02.153Z"}}]}}}