diff --git a/reference/phar/Phar.xml b/reference/phar/Phar.xml
index ed1f0e861ab0..fa13d20965cf 100644
--- a/reference/phar/Phar.xml
+++ b/reference/phar/Phar.xml
@@ -172,10 +172,31 @@
Added support for the Unix timestamp extension for Zip-based archives.
+
+ 8.0.0
+
+ Meta-data is no longer deserialized upon opening the archive,
+ but is deferred until Phar::getMetadata
+ is called.
+
+
+
+
+ &reftitle.notes;
+
+
+ Prior to PHP 8.0.0, the meta-data was deserialized upon opening the
+ archive. This could lead to security vulnerabilities.
+ Starting with PHP 8.0.0, meta-data is only deserialized when calling
+ Phar::getMetadata, which has options to restrict
+ deserialization for security reasons.
+
+
+
&reference.phar.entities.Phar;
diff --git a/reference/phar/Phar/getMetadata.xml b/reference/phar/Phar/getMetadata.xml
index e283e92fd7bf..2f44a9a6511a 100644
--- a/reference/phar/Phar/getMetadata.xml
+++ b/reference/phar/Phar/getMetadata.xml
@@ -16,6 +16,15 @@
Retrieve archive meta-data. Meta-data can be any PHP variable that can be serialized.
+
+
+ Accessing the meta-data will trigger deserialization, which can trigger
+ the execution of arbitrary PHP code. Do not use this on untrusted phar
+ archives, or configure the unserializeOptions
+ in a secure manner.
+
+
+
&reftitle.parameters;