Skip to content

Commit bcb14d4

Browse files
committed
SA-CORE-2025-006 by anzuukino, mcdruid, larowlan, greggles, longwave, poker10, catch, xjm, drumm, akalata, ram4nd
1 parent 61b241d commit bcb14d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/Drupal/Core/Database/Transaction.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ public function __destruct() {
3838
$this->connection->transactionManager()->unpile($this->name, $this->id);
3939
}
4040

41+
/**
42+
* Prevent transactions from being unserialized.
43+
*/
44+
public function __wakeup(): void {
45+
throw new \BadMethodCallException('Cannot unserialize ' . get_class($this));
46+
}
47+
4148
/**
4249
* Retrieves the name of the transaction or savepoint.
4350
*/

0 commit comments

Comments
 (0)